﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using INSTA.BankApplication.Engine;
using NUnit.Framework;

namespace INSTA.BankApplication.Engine.Tests
{
    [TestFixture]
    public class Test_Bank
    {
        [Test]
        public void Test_Singleton()
        {
            Bank b1 = Bank.Instance();
            Bank b2 = Bank.Instance();


            Assert.AreSame(b1,b2);
        }

        [Test]
        public void Test_Property_Account_ForNotNull()
        {
            bool result = Bank.Instance().Accounts != null;
        
            Assert.IsTrue(result);
        }

    }
}
